(function () {
    var $self;
    return $self = Ext.define('Aurora.store.RightsList', {
        extend: 'Ext.data.Store',
        xtype: 'rightsList',
        requires: ['Aurora.model.RightItem'],
        config: {
            autoLoad: false,
            pageSize: 100,
            model: 'Aurora.model.RightItem',
            proxy: {
                type: 'ajax',
                url: '/aurora/rights/getlist',
                reader: {
                    type: 'json',
                    rootProperty: 'data'
                },
                startParam: 'from',
                limitParam: 'count'
            }
        }
    });
})();